Skip to content

feat(bitbucket): Add API-driven pipeline backend for Bitbucket integration setup#112396

Merged
evanpurkhiser merged 1 commit intomasterfrom
evanpurkhiser/feat-bitbucket-add-api-driven-pipeline-backend-for-bitbucket-integration-setup
Apr 8, 2026
Merged

feat(bitbucket): Add API-driven pipeline backend for Bitbucket integration setup#112396
evanpurkhiser merged 1 commit intomasterfrom
evanpurkhiser/feat-bitbucket-add-api-driven-pipeline-backend-for-bitbucket-integration-setup

Conversation

@evanpurkhiser
Copy link
Copy Markdown
Member

Implement get_pipeline_api_steps() on BitbucketIntegrationProvider with
a single authorize step that verifies the Atlassian Connect JWT from
Bitbucket's addon authorization flow. The frontend posts the JWT received
from the popup callback, and the backend validates it against the original
callback path using get_integration_from_jwt. Updates build_integration()
to handle both legacy and API state paths.

Ref VDY-41

@evanpurkhiser evanpurkhiser requested review from a team as code owners April 7, 2026 18:53
@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 7, 2026

@evanpurkhiser evanpurkhiser requested review from a team and removed request for a team April 7, 2026 18:53
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 7, 2026
Comment thread src/sentry/integrations/bitbucket/integration.py Outdated
Comment thread src/sentry/integrations/bitbucket/integration.py Fixed
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/feat-bitbucket-add-api-driven-pipeline-backend-for-bitbucket-integration-setup branch from c3091db to eba6218 Compare April 7, 2026 19:37
Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit eba6218. Configure here.

Comment thread tests/sentry/integrations/bitbucket/test_integration.py Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

Backend Test Failures

Failures on 9fe8c22 in this run:

tests/sentry/integrations/bitbucket/test_integration.py::BitbucketApiPipelineTest::test_invalid_jwtlog
[gw0] linux -- Python 3.13.1 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/integrations/bitbucket/test_integration.py:342: in test_invalid_jwt
    assert "Unable to verify installation" in resp.data["jwt"][0]
E   KeyError: 'jwt'

…ation setup

Implement `get_pipeline_api_steps()` on `BitbucketIntegrationProvider` with
a single authorize step that verifies the Atlassian Connect JWT from
Bitbucket's addon authorization flow. The frontend posts the JWT received
from the popup callback, and the backend validates it against the original
callback path using `get_integration_from_jwt`. Updates `build_integration()`
to handle both legacy and API state paths.

Ref [VDY-41](https://linear.app/getsentry/issue/VDY-41/bitbucket-api-driven-integration-setup)
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/feat-bitbucket-add-api-driven-pipeline-backend-for-bitbucket-integration-setup branch from eba6218 to f1cd277 Compare April 7, 2026 21:38
@evanpurkhiser evanpurkhiser merged commit d193923 into master Apr 8, 2026
56 checks passed
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/feat-bitbucket-add-api-driven-pipeline-backend-for-bitbucket-integration-setup branch April 8, 2026 17:46
george-sentry pushed a commit that referenced this pull request Apr 9, 2026
…ation setup (#112396)

Implement `get_pipeline_api_steps()` on `BitbucketIntegrationProvider`
with
a single authorize step that verifies the Atlassian Connect JWT from
Bitbucket's addon authorization flow. The frontend posts the JWT
received
from the popup callback, and the backend validates it against the
original
callback path using `get_integration_from_jwt`. Updates
`build_integration()`
to handle both legacy and API state paths.

Ref
[VDY-41](https://linear.app/getsentry/issue/VDY-41/bitbucket-api-driven-integration-setup)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants